﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using System.Web;
using Kaesoft.Hospedaje.Business;
using Kaesoft.Hospedaje.Entities;

namespace Kaesoft.Hospedaje.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ServicioDatosReglas : IServicioDatosReglas
    {
        public List<Servicio> ObtenerServicios()
        {
            var business = new ReservacionBusiness();
            return business.ObtenerServicios();
        }

        public List<Habitacion> ObtenerHabitaciones()
        {
            var business = new ReservacionBusiness();
            return business.ObtenerHabitaciones();
        }

        public List<Habitacion> ObtenerHabitacion(int idHabitacion)
        {
            var business = new ReservacionBusiness();
            return business.ObtenerHabitacion(idHabitacion);
        }

        public PaginatedList<Habitacion> ObtenerHabitacionesPaginado(int tipoConsulta, string criterio, int indice)
        {
            var business = new ReservacionBusiness();
            return business.ObtenerHabitacionesPaginado(tipoConsulta, criterio, indice);
        }

        public void GuardarHabitacion(Habitacion habitacion)
        {
            var business = new ReservacionBusiness();
            business.GuardarHabitacion(habitacion);
        }
    }
}